﻿using SapaFinance.Domain.Model;
using Xunit;

namespace SapaFinance.Tests
{
    public class CurrencyTest
    {
        public static Currency Create()
        {
            var currency = new Rub();
            return currency;
        }

        [Fact]
        public void  CurrencyEquals()
        {
            var currency1 = Create();
            var currency2 = new Rub();
            var currency3 = new Eur();
            Assert.Equal(currency1, currency2);
            Assert.NotEqual(currency1, currency3);
            Assert.NotEqual(currency1, currency3);
        }
    }
}
